home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5137 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.dfn.de!si-nic!usenet
  2. From: Markus Becker <becker@zess.uni-siegen.de>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Limit on #bytes inside of struct?
  5. Date: Mon, 12 Feb 1996 11:26:32 +0100
  6. Organization: ZESS, Uni-GH-Siegen
  7. Message-ID: <311F15D8.78D1@zess.uni-siegen.de>
  8. References: <4feg1d$d4g@cville-srv.wam.umd.edu> <4ffg6b$ivd@sparcserver.lrz-muenchen.de> <4ffohq$1gb@mordred.gatech.edu> <4ffun7$1l4l@cymbal.aix.calpoly.edu>
  9. NNTP-Posting-Host: becker.zess.uni-siegen.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
  14.  
  15. Dan Stubbs wrote:
  16. > Here is a specific program to test the above suggestions.
  17.  
  18. No it isn't, see below.
  19.  
  20. >    typedef struct {
  21. >       int the_array[50000];
  22. >    } struct_type;
  23.  
  24. This way, you don't put the 50K numbers in the struct, but only
  25. a pointer to them. Should be at most 4 bytes.
  26.  
  27. --
  28. Markus Becker                
  29. http://www.zess.uni-siegen.de/private/becker/
  30. Zentrum fuer Sensorsysteme (ZESS)
  31. http://www.zess.uni-siegen.de/private/becker/win95
  32.